//
//  ViewController21.swift
//  WxToutiao
//
//  Created by YQ05 on 2018/4/20.
//  Copyright © 2018年 yons. All rights reserved.
//

import UIKit

class ViewController21: UIViewController {

    public var textLabel: UILabel!
    
    override func viewDidLoad() {
        super.viewDidLoad()

        textLabel = UILabel(frame: self.view.bounds)
        textLabel.backgroundColor = UIColor(red: CGFloat(arc4random()%256)/255.0, green: CGFloat(arc4random()%256)/255.0, blue: CGFloat(arc4random()%256)/255.0, alpha: 1.0)
        
        textLabel.textColor = UIColor.white
        textLabel.textAlignment = .center
        self.view.addSubview(textLabel)
        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}

